<template>
  <div class="reply-wrap">
    <div class="left">
      <img
        :src="replyItem.headerimg|urlFilter"
        alt="图片"
        width="30px"
        height="30px"
        style="border-radius: 50%;"
      />
    </div>
    <div class="right">
      <span class="nick">{{ replyItem.nick }}:</span>
      <span>{{ replyItem.message }}</span>
    </div>
    <div class="time">
      <span>{{ replyItem.reply_time | formatTimeFilter }}</span>
      <!-- <a href="javascript:void(0)" @click="onReply">回复</a> -->
    </div>
  </div>
</template>

<script>
import { baseURL } from "@/utils/request.js";
import DataUtil from "@/utils/DataUtil.js";

export default {
  name: "LogReply",
  props: ["replyItem", "logId"],
  data() {
    return {
      baseURL
    };
  },
  methods: {
    
  },
  filters: {
    formatTimeFilter(value) {
      return DataUtil.formatDate.format(new Date(value), "yyyy-MM-dd hh:mm:ss");
    }
  }
};
</script>

<style lang="scss" scoped>
.reply-wrap {
  display: flex;
  position: relative;
  //background-color: rgb(245, 245, 241);
  padding-top: 5px;
  padding-bottom: 25px;
  padding-left: 20px;
  border-bottom: 1px solid #ebeef5;
  font-size: 12px;
  .left {
    margin-right: 5px;
  }
  .right {
    .nick {
      color: #0d68c4;
    }
  }
  .time {
    position: absolute;
    bottom: 0px;
    right: 5px;
    span {
      font-size: 12px;
      color: #94969b;
      margin-right: 5px;
    }
    a {
      font-size: 12px;
      color: #94969b;
      &:hover {
        text-decoration: underline;
      }
    }
  }
}
</style>
